<template>
  <tool-page title="随机社会信用代码" :value="value" @generate="generate" :remark="remark">
  </tool-page>
</template>

<script>
export default {
  name: "GenerateUnifiedSocialCreditIdentifier",
  data() {
    return {
      value: '',
      remark: '生成统一社会信用代码，生成内容依据于正则表达式：\n/[0-9A-HJ-NPQRTUWXY]{2}\\d{6}[0-9A-HJ-NPQRTUWXY]{10}/'
    }
  },
  methods: {
    generate() {
      this.value = this.simpleUtils.generateStringFromRegex(/[0-9A-HJ-NPQRTUWXY]{2}\d{6}[0-9A-HJ-NPQRTUWXY]{10}/);
    }
  },
  created() {
    this.generate();
  }
}
</script>

<style scoped>

</style>
